package com.hhkj.api.course.controller;

import com.hhkj.api.course.service.biz.ApiSaleCourseBizService;
import com.ruoyi.common.core.controller.BaseController;
import com.ruoyi.common.core.page.TableDataInfo;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;

/**
 * ApiOpenSaleCourseController
 *
 * @author HHKJ-SERVER-ZJ
 * @since 2023/12/26 14:05
 */
@RequestMapping("/api/open/sale/course")
@RestController
public class ApiOpenSaleCourseController extends BaseController {

    @Autowired
    private ApiSaleCourseBizService apiSaleCourseBizService;

    /** 获取免费课程列表信息 */
    @GetMapping("/free/list")
    public TableDataInfo listFreePrice() {
        return getDataTable(apiSaleCourseBizService.listFreePrice());
    }
}
